﻿using NesEmu.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NesEmu.Tests.Mock
{
    internal class MockCpu : Cpu
    {
        public MockCpu(Emulator emulator) : base(emulator) { }

        public void SetA(byte v) => _a = v;

        public void SetX(byte v) => _x = v;

        public void SetY(byte v) => _y = v;

        public void SetNFlag(bool v) => _flag.N = v;

        public void SetVFlag(bool v) => _flag.V = v;

        public void SetBit5Flag(bool v) => _flag.Bit5 = v;

        public void SetBit4Flag(bool v) => _flag.Bit4 = v;

        public void SetDFlag(bool v) => _flag.D = v;

        public void SetIFlag(bool v) => _flag.I = v;

        public void SetZFlag(bool v) => _flag.Z = v;

        public void SetCFlag(bool v) => _flag.C = v;
    }
}
